import request from '@/tools/request'

export function roleCreate(data) {
  return request({
    url: '/role/create',
    method: 'post',
    data
  })
}

export function roleFindAll(data) {
  return request({
    url: '/role/findAll',
    method: 'post',
    data,
    loading: false
  })
}

export function roleFindOne(data) {
  return request({
    url: '/role/findOne',
    method: 'post',
    data
  })
}

export function roleUpdate(data) {
  return request({
    url: '/role/update',
    method: 'post',
    data
  })
}

export function roleRemove(data) {
  return request({
    url: '/role/remove',
    method: 'post',
    data
  })
}

export function roleRemoveBatch(data) {
  return request({
    url: '/role/removeBatch',
    method: 'post',
    data
  })
}

export function roleCreateBatch(data) {
  return request({
    url: '/role/createBatch',
    method: 'post',
    data
  })
}
